package org.linlinjava.litemall.db.service;

import com.github.pagehelper.PageHelper;
import org.linlinjava.litemall.db.dao.AgedmallAgentGoodsMapper;
import org.linlinjava.litemall.db.dao.app.AppAgentGoodsMapper;
import org.linlinjava.litemall.db.domain.AgedmallAgentCombo;
import org.linlinjava.litemall.db.domain.AgedmallAgentGoods;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AgedmallAgentGoodsService {
    @Resource
    private AgedmallAgentGoodsMapper agedmallAgentGoodsMapper;
    @Resource
    private AppAgentGoodsMapper appAgentGoodsMapper;

    public List<AgedmallAgentGoods> goodsList(Integer agentId, String keyword, Integer page, Integer limit) {
        PageHelper.startPage(page, limit);
        return appAgentGoodsMapper.goodsList(agentId, keyword);
    }
}
